package com.javachmapi.controller;

import com.javachmapi.factory.BeanFactory;
import com.javachmapi.service.IAccountService;

/**
 * 模拟一个表现层，用于调用业务层
 */
public class MyController {

    public static void main(String[] args) {

//        IAccountService as = new IAccountServiceImpl();  //实例化

        IAccountService as = (IAccountService) BeanFactory.getBean("accountService");
        System.out.println(as);
        as.saveAccount();
    }

}
